package com.teira.rhrrealstate.session;

import java.util.Arrays;

import org.jboss.seam.annotations.Name;

import com.teira.rhrrealstate.entity.ZonaGeografica;

@Name("zonaGeograficaList")
public class ZonaGeograficaList extends BaseQuery<ZonaGeografica, Long> {

	private static final String EJBQL = "select zonaGeografica from ZonaGeografica zonaGeografica";

	private static final String[] RESTRICTIONS = { "lower(zonaGeografica.descripcion) like lower(concat(#{zonaGeograficaList.zonaGeografica.descripcion},'%'))", };

	private ZonaGeografica zonaGeografica = new ZonaGeografica();

	public ZonaGeograficaList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public ZonaGeografica getZonaGeografica() {
		return zonaGeografica;
	}
}
